<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>   
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>欢迎使用</title>
	<link type="text/css" rel="stylesheet" href="../<s:property value="#session.themeStyle.mainCss" default="Skin/PM/LightBlue/main.css"/>" />
</head>
<body>
	<div class="navBar">
			当前位置：&gt;&gt;首页
	</div>
	<div class="content">
		<div id="divWelcome">
			<s:if test="listResult!=null&&listResult.size>0">
				<table>
				<s:iterator value="listResult">
				<tr>
					<td>
			           <a id="mtyy" href="../getDeptTemplateList?type=1" target="mainFrame"><img alt="" src="../images/index_sjtj.png" style="margin-left: 20px;margin-right: 20px;" /></a>
					</td>
				</tr>
				</s:iterator>
				</table>
			</s:if><s:else>
				<div style="line-height: 200px;">欢迎使用<s:if test="#session.systemName!=null"><s:property value="#session.systemName"/></s:if><s:else>通用信息管理系统</s:else></div>
			</s:else>
		</div>
    	<iframe src="../message/sysMessage-queryMessageTOP.action" style="border: green 0px solid;"></iframe>
    </div>
	<script src="../js/jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			initWindow();
			$(window).resize(function(){
				initWindow();
			});
		});
		var initWindow = function() {
			var height = $("#mainFrame", window.parent.document).height() - 60;
			$(".content").height(height);
			var h = (height - 130) - $("#divWelcome").height();
			h = h - $("#divMessage").height();
			h = (h / 2);
			$("#divMessage").css("margin-top", h);
		}
	</script>
</body>
</html>